import os

# if the scripts are run from non-write directories, PYRO complains that
# PYRO_STORAGE env. variable points to "no write access" directory
# according to http://www.xs4all.nl/~irmen/pyro3/manual/3-install.html
# PYRO uses this directory for data like log files.
# This variable can be set in the PYRO configuration file (which is not used
# here) and it has to be done even before first PYRO import. Changing
# Pyro.config.PYRO_STORAGE in your program leads to unexpected results,
# because the initilization has already been done using the old value.

# don't change the setting if the variable has been deliberately set before
if not os.environ.get("PYRO_STORAGE"):
    os.environ["PYRO_STORAGE"] = "/var/log/fdtd"